import request from '@/utils/request'

// 查询企业荣誉列表
export function listHonour(query) {
  return request({
    url: 'app/honour/list',
    method: 'get',
    params: query 
  })
}

// 查询企业荣誉详细
export function getHonour(id) {
  return request({
    url: 'app/honour/' + id,
    method: 'get'
  })
}

// 新增企业荣誉
export function addHonour(data) {
  return request({
    url: 'app/honour/add',
    method: 'post',
    data: data
  })
}

// 修改企业荣誉
export function updateHonour(data) {
  return request({
    url: 'app/honour',
    method: 'put',
    data: data
  })
}

// 删除企业荣誉
export function delHonour(id) {
  return request({
    url: 'app/honour/' + id,
    method: 'delete'
  })
}
